package org.example.order.dao;


import org.apache.ibatis.annotations.Param;
import org.example.order.entity.OrderItemEntity;

import java.util.List;

/**
 * @author xiaojie_cc
 * @version 1.0
 */
public interface OrderItemDao{

    // 保存订单项
    void saveOrderItem(@Param("orderItem") List<OrderItemEntity> orderItem, @Param("orderId") Long orderId);

    // 查询订单的订单项信息
    List<OrderItemEntity> getOrderItemInfoByOrderId(@Param("orderId") Long orderId);

    // 找到一个购买的商品名称
    List<String> getOrderItemNamePayInfoByOrderSn(@Param("orderSn") String orderSn);
}
